﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections.Specialized;
using System.Configuration;

namespace WebApplication
{
    public partial class MenuLandingPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            NameValueCollection Dictionary = ConfigurationManager.GetSection("DictionaryMap") as NameValueCollection;
            

            if (User.IsInRole(Dictionary["SDH_TeamMember_Rol"]))
            //if (User.IsInRole("SDHGerentes"))
            {
                Menu1.Visible = true;
                Label1.Text = "Estamos mostrando el menú para el rol " + Dictionary["SDH_TeamMember_Rol"];
            }
            else
            {
                Menu1.Visible = false;
            }

             

        }
    }
}